
GARNAME      = board-x86pc.bios_efi64
GARVERSION   = 2020-03-15
CATEGORIES   = bootloaders
MASTER_SITES = 
DISTFILES    = 

WORKSRC      = $(WORKDIR)

LICENSE = GPL2

DESCRIPTION =
define BLURB
endef

BUILDDEPS   = bootloaders/syslinux bootloaders/grub2

BUILD_SCRIPTS   =
INSTALL_SCRIPTS = custom

include ../../gar.mk

install-custom:
	@mkdir -p $(DESTDIR)/boot/syslinux
	@cp -f $(build_datadir)/syslinux/ldlinux.c32    $(DESTDIR)/boot/syslinux/ldlinux.c32
	@cp -f $(build_datadir)/syslinux/ldlinux.c32    $(DESTDIR)/boot/syslinux/ldlinux.sys
	@cp -f $(build_datadir)/syslinux/libcom32.c32   $(DESTDIR)/boot/syslinux/libcom32.c32
	@cp -f $(build_datadir)/syslinux/libutil.c32    $(DESTDIR)/boot/syslinux/libutil.c32
	@cp -f $(build_datadir)/syslinux/mbr.bin        $(DESTDIR)/boot/syslinux/mbr.bin
	@cp -f $(build_datadir)/syslinux/gptmbr.bin     $(DESTDIR)/boot/syslinux/gptmbr.bin
	@cp -f $(build_datadir)/syslinux/vesamenu.c32   $(DESTDIR)/boot/syslinux/vesamenu.c32
	@cp -f $(build_libdir)/grub/x86_64-efi/core.efi $(DESTDIR)/boot/grub-efi-bootx64.efi

clean-all:
	@rm -rf $(DESTDIR)/boot/syslinux*
	@rm -f  $(DESTDIR)/boot/syslinux/ldlinux.sys
	@rm -f  $(DESTDIR)/boot/syslinux/libcom32.c32
	@rm -f  $(DESTDIR)/boot/syslinux/libutil.c32
	@rm -f  $(DESTDIR)/boot/syslinux/mbr.bin
	@rm -f  $(DESTDIR)/boot/syslinux/gptmbr.bin
	@rm -f  $(DESTDIR)/boot/syslinux/vesamenu.c32
	@rm -f  $(DESTDIR)/boot/grub-efi-bootx64.efi
